package org.loong.crypto.common.enums;

/**
 * Data format enum.
 */
public enum DataFormatEnum {

    /**
     * Data.
     */
    DATA("data"),

    /**
     * Signed data.
     */
    SIGNED_DATA("signedData"),
    
    /**
     * Enveloped data.
     */
    ENVELOPED_DATA("envelopedData"),
    
    /**
     * Signed enveloped data.
     */
    SIGNED_ENVELOPED_DATA("signedAndEnvelopedData"),
    
    /**
     * Digested data.
     */
    DIGESTED_DATA("digestedData"),
    
    /**
     * Encrypted data.
     */
    ENCRYPTED_DATA("encryptedData"),
    
    /**
     * Key agreement info.
     */
    KEY_AGREEMENT_INFO("keyAgreementInfo");

    private final String value;

    /**
     * all args constructor.
     *
     * @param value the value
     */
    DataFormatEnum(final String value) {
        this.value = value;
    }

    /**
     * Get value.
     *
     * @return value
     */
    public String getValue() {
        return value;
    }
}
